package com.comleader.operator.pojo.entity;

import java.time.LocalDateTime;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import lombok.Data;

/**
 * @Description 字典类型表
 * @Auhtor 连新景
 * @Date 2024/07/15 11:08
 */
@Table("dict_type")
@Data
public class DictTypeEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 字典主键
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 字典编码
     */
    @NotBlank(message = "字典编码不能为空")
    private String code;

    /**
     * 字典名称
     */
    @NotBlank(message = "字典名称不能为空")
    private String name;

    /**
     * 业务类型(1-个人用户实名制 2-车联网卡实名制 3-短信端口业务)
     */
    @NotNull(message = "业务类型不能为空")
    private Integer type;

    /**
     * 修改时间
     */
    @Column(value = "update_time")
    private LocalDateTime updateTime;

}
